home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / vbasic / loanapp.exe / LOANF5.FRM < prev    next >
Text File  |  1993-07-22  |  13KB  |  391 lines

  1. VERSION 2.00
  2. Begin Form Form5 
  3.    BackColor       =   &H00808080&
  4.    ClientHeight    =   2655
  5.    ClientLeft      =   270
  6.    ClientTop       =   2100
  7.    ClientWidth     =   8880
  8.    ControlBox      =   0   'False
  9.    Height          =   3060
  10.    Left            =   210
  11.    LinkMode        =   1  'Source
  12.    LinkTopic       =   "Form5"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   2655
  16.    ScaleWidth      =   8880
  17.    Top             =   1755
  18.    Width           =   9000
  19.    Begin CommandButton Command3 
  20.       Caption         =   "Cancel"
  21.       Height          =   300
  22.       Left            =   4995
  23.       TabIndex        =   19
  24.       Top             =   2145
  25.       Width           =   3000
  26.    End
  27.    Begin CommandButton Command1 
  28.       Caption         =   "OK"
  29.       Height          =   300
  30.       Left            =   885
  31.       TabIndex        =   18
  32.       Top             =   2145
  33.       Width           =   3000
  34.    End
  35.    Begin PictureBox Picture6 
  36.       Height          =   900
  37.       Left            =   5685
  38.       ScaleHeight     =   870
  39.       ScaleWidth      =   3120
  40.       TabIndex        =   5
  41.       Top             =   1035
  42.       Width           =   3150
  43.       Begin VBedit BEditF5 
  44.          CellHeight      =   480
  45.          CellWidth       =   360
  46.          CharSet         =   16652
  47.          CombBaseLine    =   390
  48.          CombEndHeight   =   120
  49.          CombEndMarker   =   0   'False
  50.          CombHeight      =   60
  51.          FontBold        =   -1  'True
  52.          FontItalic      =   0   'False
  53.          FontName        =   "MS Sans Serif"
  54.          FontSize        =   9.75
  55.          FontStrikethru  =   0   'False
  56.          FontUnderline   =   0   'False
  57.          Height          =   495
  58.          Index           =   6
  59.          InflateBottom   =   180
  60.          InflateLeft     =   180
  61.          InflateRight    =   180
  62.          InflateTop      =   240
  63.          Left            =   210
  64.          TabIndex        =   17
  65.          Top             =   330
  66.          Version         =   268435458
  67.          Width           =   2895
  68.       End
  69.       Begin Label Label11 
  70.          Caption         =   "$"
  71.          FontBold        =   -1  'True
  72.          FontItalic      =   0   'False
  73.          FontName        =   "MS Sans Serif"
  74.          FontSize        =   12
  75.          FontStrikethru  =   0   'False
  76.          FontUnderline   =   0   'False
  77.          Height          =   270
  78.          Left            =   30
  79.          TabIndex        =   24
  80.          Top             =   495
  81.          Width           =   165
  82.       End
  83.       Begin Label Label6 
  84.          Caption         =   "Total (a+b):"
  85.          Height          =   210
  86.          Left            =   45
  87.          TabIndex        =   14
  88.          Top             =   45
  89.          Width           =   1065
  90.       End
  91.    End
  92.    Begin PictureBox Picture5 
  93.       Height          =   900
  94.       Left            =   3270
  95.       ScaleHeight     =   870
  96.       ScaleWidth      =   2310
  97.       TabIndex        =   4
  98.       Top             =   1035
  99.       Width           =   2340
  100.       Begin VBedit BEditF5 
  101.          CellHeight      =   480
  102.          CellWidth       =   360
  103.          CharSet         =   16652
  104.          CombBaseLine    =   390
  105.          CombEndHeight   =   120
  106.          CombEndMarker   =   0   'False
  107.          CombHeight      =   60
  108.          FontBold        =   -1  'True
  109.          FontItalic      =   0   'False
  110.          FontName        =   "MS Sans Serif"
  111.          FontSize        =   9.75
  112.          FontStrikethru  =   0   'False
  113.          FontUnderline   =   0   'False
  114.          Height          =   480
  115.          Index           =   5
  116.          InflateBottom   =   180
  117.          InflateLeft     =   180
  118.          InflateRight    =   180
  119.          InflateTop      =   240
  120.          Left            =   270
  121.          TabIndex        =   16
  122.          Top             =   345
  123.          Version         =   268435458
  124.          Width           =   1890
  125.       End
  126.       Begin Label Label10 
  127.          Caption         =   "$"
  128.          FontBold        =   -1  'True
  129.          FontItalic      =   0   'False
  130.          FontName        =   "MS Sans Serif"
  131.          FontSize        =   12
  132.          FontStrikethru  =   0   'False
  133.          FontUnderline   =   0   'False
  134.          Height          =   300
  135.          Left            =   120
  136.          TabIndex        =   23
  137.          Top             =   495
  138.          Width           =   165
  139.       End
  140.       Begin Label Label5 
  141.          Caption         =   "(b) Improvement Costs:"
  142.          Height          =   225
  143.          Left            =   45
  144.          TabIndex        =   13
  145.          Top             =   45
  146.          Width           =   2040
  147.       End
  148.    End
  149.    Begin PictureBox Picture4 
  150.       Height          =   900
  151.       Left            =   45
  152.       ScaleHeight     =   870
  153.       ScaleWidth      =   3120
  154.       TabIndex        =   3
  155.       Top             =   1035
  156.       Width           =   3150
  157.       Begin VBedit BEditF5 
  158.          CellHeight      =   480
  159.          CellWidth       =   360
  160.          CharSet         =   16652
  161.          CombBaseLine    =   390
  162.          CombEndHeight   =   120
  163.          CombEndMarker   =   0   'False
  164.          CombHeight      =   60
  165.          FontBold        =   -1  'True
  166.          FontItalic      =   0   'False
  167.          FontName        =   "MS Sans Serif"
  168.          FontSize        =   9.75
  169.          FontStrikethru  =   0   'False
  170.          FontUnderline   =   0   'False
  171.          Height          =   480
  172.          Index           =   4
  173.          InflateBottom   =   180
  174.          InflateLeft     =   180
  175.          InflateRight    =   180
  176.          InflateTop      =   240
  177.          Left            =   210
  178.          TabIndex        =   15
  179.          Top             =   345
  180.          Version         =   268435458
  181.          Width           =   2895
  182.       End
  183.       Begin Label Label9 
  184.          Caption         =   "$"
  185.          FontBold        =   -1  'True
  186.          FontItalic      =   0   'False
  187.          FontName        =   "MS Sans Serif"
  188.          FontSize        =   12
  189.          FontStrikethru  =   0   'False
  190.          FontUnderline   =   0   'False
  191.          Height          =   285
  192.          Left            =   30
  193.          TabIndex        =   22
  194.          Top             =   495
  195.          Width           =   150
  196.       End
  197.       Begin Label Label4 
  198.          Caption         =   "(a) Present Value:"
  199.          Height          =   225
  200.          Left            =   30
  201.          TabIndex        =   12
  202.          Top             =   45
  203.          Width           =   1560
  204.       End
  205.    End
  206.    Begin PictureBox Picture3 
  207.       Height          =   900
  208.       Left            =   5415
  209.       ScaleHeight     =   870
  210.       ScaleWidth      =   3390
  211.       TabIndex        =   2
  212.       Top             =   60
  213.       Width           =   3420
  214.       Begin VBedit BEditF5 
  215.          CellHeight      =   480
  216.          CellWidth       =   360
  217.          CharSet         =   16652
  218.          CombBaseLine    =   390
  219.          CombEndHeight   =   120
  220.          CombEndMarker   =   0   'False
  221.          CombHeight      =   60
  222.          FontBold        =   -1  'True
  223.          FontItalic      =   0   'False
  224.          FontName        =   "MS Sans Serif"
  225.          FontSize        =   9.75
  226.          FontStrikethru  =   0   'False
  227.          FontUnderline   =   0   'False
  228.          Height          =   495
  229.          Index           =   3
  230.          InflateBottom   =   180
  231.          InflateLeft     =   180
  232.          InflateRight    =   180
  233.          InflateTop      =   240
  234.          Left            =   330
  235.          TabIndex        =   11
  236.          Top             =   330
  237.          Version         =   268435458
  238.          Width           =   2925
  239.       End
  240.       Begin Label Label8 
  241.          Caption         =   "$"
  242.          FontBold        =   -1  'True
  243.          FontItalic      =   0   'False
  244.          FontName        =   "MS Sans Serif"
  245.          FontSize        =   12
  246.          FontStrikethru  =   0   'False
  247.          FontUnderline   =   0   'False
  248.          Height          =   285
  249.          Left            =   150
  250.          TabIndex        =   21
  251.          Top             =   480
  252.          Width           =   180
  253.       End
  254.       Begin Label Label3 
  255.          Caption         =   "Amount of Existing Liens:"
  256.          Height          =   240
  257.          Left            =   45
  258.          TabIndex        =   8
  259.          Top             =   45
  260.          Width           =   2235
  261.       End
  262.    End
  263.    Begin PictureBox Picture2 
  264.       Height          =   900
  265.       Left            =   1920
  266.       ScaleHeight     =   870
  267.       ScaleWidth      =   3390
  268.       TabIndex        =   1
  269.       Top             =   60
  270.       Width           =   3420
  271.       Begin VBedit BEditF5 
  272.          CellHeight      =   480
  273.          CellWidth       =   360
  274.          CharSet         =   16652
  275.          CombBaseLine    =   390
  276.          CombEndHeight   =   120
  277.          CombEndMarker   =   0   'False
  278.          CombHeight      =   60
  279.          FontBold        =   -1  'True
  280.          FontItalic      =   0   'False
  281.          FontName        =   "MS Sans Serif"
  282.          FontSize        =   9.75
  283.          FontStrikethru  =   0   'False
  284.          FontUnderline   =   0   'False
  285.          Height          =   495
  286.          Index           =   2
  287.          InflateBottom   =   180
  288.          InflateLeft     =   180
  289.          InflateRight    =   180
  290.          InflateTop      =   240
  291.          Left            =   300
  292.          TabIndex        =   10
  293.          Top             =   345
  294.          Version         =   268435458
  295.          Width           =   2925
  296.       End
  297.       Begin Label Label7 
  298.          Caption         =   "$"
  299.          FontBold        =   -1  'True
  300.          FontItalic      =   0   'False
  301.          FontName        =   "MS Sans Serif"
  302.          FontSize        =   12
  303.          FontStrikethru  =   0   'False
  304.          FontUnderline   =   0   'False
  305.          Height          =   300
  306.          Left            =   135
  307.          TabIndex        =   20
  308.          Top             =   465
  309.          Width           =   180
  310.       End
  311.       Begin Label Label2 
  312.          Caption         =   "Original Cost:"
  313.          Height          =   210
  314.          Left            =   75
  315.          TabIndex        =   7
  316.          Top             =   75
  317.          Width           =   1305
  318.       End
  319.    End
  320.    Begin PictureBox Picture1 
  321.       Height          =   900
  322.       Left            =   45
  323.       ScaleHeight     =   870
  324.       ScaleWidth      =   1770
  325.       TabIndex        =   0
  326.       Top             =   60
  327.       Width           =   1800
  328.       Begin VBedit BEditF5 
  329.          CellHeight      =   480
  330.          CellWidth       =   360
  331.          CharSet         =   16652
  332.          CombBaseLine    =   390
  333.          CombEndHeight   =   120
  334.          CombEndMarker   =   0   'False
  335.          CombHeight      =   60
  336.          FontBold        =   -1  'True
  337.          FontItalic      =   0   'False
  338.          FontName        =   "MS Sans Serif"
  339.          FontSize        =   9.75
  340.          FontStrikethru  =   0   'False
  341.          FontUnderline   =   0   'False
  342.          Height          =   495
  343.          Index           =   1
  344.          InflateBottom   =   180
  345.          InflateLeft     =   180
  346.          InflateRight    =   180
  347.          InflateTop      =   240
  348.          Left            =   45
  349.          TabIndex        =   9
  350.          Top             =   330
  351.          Version         =   268435458
  352.          Width           =   1710
  353.       End
  354.       Begin Label Label1 
  355.          Caption         =   "Year Acquired:"
  356.          Height          =   225
  357.          Left            =   45
  358.          TabIndex        =   6
  359.          Top             =   45
  360.          Width           =   1290
  361.       End
  362.    End
  363. End
  364.  
  365. Sub BEditF5_LostFocus (Index As Integer)
  366.     If (Index = 4) Or (Index = 5) Or (Index = 6) Then
  367.         BEditF5(6).Text = LTrim$(Str$(Val(BEditF5(4).Text) + Val(BEditF5(5).Text)))
  368.     End If
  369. End Sub
  370.  
  371. Sub Command1_Click ()
  372.     MainRec.D.D1 = Form5.BEditF5(1).Text
  373.     MainRec.D.D2 = Form5.BEditF5(2).Text
  374.     MainRec.D.D3 = Form5.BEditF5(3).Text
  375.     MainRec.D.D4 = Form5.BEditF5(4).Text
  376.     MainRec.D.D5 = Form5.BEditF5(5).Text
  377.     MainRec.D.D6 = Form5.BEditF5(6).Text
  378.     UpdateLabelD
  379.     Form5.Hide
  380. End Sub
  381.  
  382. Sub Command3_Click ()
  383.     Form5.Hide
  384. End Sub
  385.  
  386. Sub Form_Load ()
  387.     Form5.Left = 300
  388.     Form5.Top = (Screen.Height - Form5.Height) / 2
  389. End Sub
  390.  
  391.